package com.lyeducation.entities.course.middle;

import javax.persistence.*;

/**
 * 课程1-n章节
 */
@Entity
@Table(name = "course_chapter")
@IdClass(CourseChapterEntityPK.class)
public class CourseChapterEntity {
    private String chapterId;
    private String courseId;

    @Id
    @Column(name = "chapterId", nullable = false, length = 18)
    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    @Id
    @Column(name = "courseId", nullable = false, length = 18)
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }
}
